package com.ruoyi.quality.service;

import com.ruoyi.quality.domain.QualityContinuousImprovement;
import com.ruoyi.quality.domain.vo.QualityContinuousImprovementVo;
import com.ruoyi.quality.domain.bo.QualityContinuousImprovementBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 持续改善Service接口
 *
 * @author ruoyi
 * @date 2023-08-28
 */
public interface IQualityContinuousImprovementService {

    /**
     * 查询持续改善
     */
    QualityContinuousImprovementVo queryById(Long id);

    /**
     * 查询持续改善
     */
    QualityContinuousImprovementVo queryByProcessInstanceId(String processInstanceId);

    /**
     * 查询持续改善列表
     */
    TableDataInfo<QualityContinuousImprovementVo> queryPageList(QualityContinuousImprovementBo bo, PageQuery pageQuery);

    /**
     * 查询持续改善列表
     */
    List<QualityContinuousImprovementVo> queryList(QualityContinuousImprovementBo bo);

    /**
     * 新增持续改善
     */
    Boolean insertByBo(QualityContinuousImprovementBo bo);

    /**
     * 修改持续改善
     */
    Boolean updateByBo(QualityContinuousImprovementBo bo);

    /**
     * 校验并批量删除持续改善信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
